package html;

import java.util.HashSet;
import java.util.Set;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class Allbiaoqian {
	public static void main(String[] args) throws Exception {
		Set<String> set = new HashSet<String>();
		Document doc = Jsoup.connect("https://baidu.com").get();
		Elements links = doc.select("*");
		for (Element link : links) {
			set.add(link.tagName());
		}
		for (String s : set) {
			Elements ele = doc.select(s);
			System.out.println(s);
		}
	}
}
